STEP 8: We have all the info about the animal we need. Let's make a function that uses logic to classify it!
- In , drag in Define Function with Docstring above where it says: MAIN FUNCTION.
- This function requires five parameters— four booleans and then the animal. Rewrite it to look like this: def·classify_animal(warm_blooded,·has_scales,·eggs_in_water,·has_hair,·animal):
- Finally, change your docstring to the following: """ Determines the class of an animal """
To navigate the page using the TAB key, first press ESC to exit the code editor.